home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Bus / T-Z / VCR+(app+src) Folder / Sources / putDateInDlg.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-16  |  393 b   |  21 lines  |  [TEXT/KAHL]

  1. #include "VCRplus.h"
  2.  
  3. void putDateInDlg(void)
  4. {
  5.     long            secs;
  6.     DateTimeRec    myDateTime;
  7.     Str32        tempStr;
  8.     
  9.     GetDateTime(&secs);
  10.     Secs2Date(secs,&myDateTime);
  11.     
  12.     NumToString((long)myDateTime.year % 100, tempStr);
  13.     SetDText(dlgYEAR,tempStr);
  14.     
  15.     NumToString((long)myDateTime.day, tempStr);
  16.     SetDText(dlgDAY,tempStr);
  17.     
  18.     NumToString((long)myDateTime.month, tempStr);
  19.     SetDText(dlgMONTH,tempStr);
  20. }
  21.